///*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
//package com.searchbook;
//
//import android.app.Activity;
//import android.os.Bundle;
//import android.os.Handler;
//import android.text.Editable;
//import android.view.View;
//import android.view.View.OnClickListener;
//import android.widget.EditText;
//import android.widget.ImageView;
//import android.widget.ListView;
//import android.widget.TextView;
//import com.searchbook.keywordsfetch.MyRunnable;
//import com.searchbook.keywordsfetch.Suggestion;
//import com.searchbook.keywordsflow.KeywordsFlow;
//import com.searchbook.keywordswidget.ToolWidget;
//
//public class KeywordsActivity extends Activity implements View.OnClickListener {
//	public static void launchsearch(Activity paramActivity) {
//		Handler localHandler = new Handler();
//		MyRunnable localMyRunnable = new MyRunnable(paramActivity,
//				localHandler, new EditText(paramActivity), new ListView(
//						paramActivity));
//		Config.keywordsFlow = (KeywordsFlow) paramActivity
//				.findViewById(ToolWidget.getIdResIDByName(paramActivity,
//						"searchsdk_act_keywordinput_keywords_flow"));
//		Config.keywordsFlow.setDuration(800L);
//		KeyWordManagement.getKeywords(paramActivity, false);
//		String[] arrayOfString = KeyWordManagement.getOneLine(true);
//		if (arrayOfString != null) {
//			ToolSearch.addKeywords2list(Config.keywordsFlow, arrayOfString);
//			Config.keywordsFlow.show(1);
//			Suggestion.getSuggest(null, localMyRunnable, localHandler, true);
//			return;
//		}
//		Suggestion.getSuggest(null, localMyRunnable, localHandler, false);
//	}
//
//	private void setOnclick() {
//		((ImageView) findViewById(ToolWidget.getIdResIDByName(
//				getApplicationContext(),
//				"searchsdk_act_keywordinput_btn_search")))
//				.setOnClickListener(new View.OnClickListener(
//						(EditText) findViewById(ToolWidget.getIdResIDByName(
//								getApplicationContext(),
//								"searchsdk_act_keywordinput_edit"))) {
//					public void onClick(View paramView) {
//						String str = this.val$contentTextView.getText()
//								.toString();
//						ToolWidget.openBrowser(
//								KeywordsActivity.this.getApplicationContext(),
//								str);
//					}
//				});
//	}
//
//	public void onClick(View paramView) {
//		if (!(paramView instanceof TextView))
//			return;
//		String str = ((TextView) paramView).getText().toString();
//		ToolWidget.openBrowser(getApplicationContext(), str);
//	}
//
//	public void onCreate(Bundle paramBundle) {
//		super.onCreate(paramBundle);
//		setContentView(ToolWidget.getLayoutResIDByName(getApplicationContext(),
//				"searchsdk_act_keywordinput"));
//		launchsearch(this);
//		Config.keywordsFlow.setOnItemClickListener(this);
//		setOnclick();
//	}
//}